class Person:
    def __init__(self,name,age):
        self.name = name
        self.__age = age

    def say_age(self):
        print("{}的年龄时：{}".format(self.name,self.__age))

    # def __str__(self):
    #     return '名字是{}'.format(self.name)


p = Person('tom',18)
print(p) # <__main__.Person object at 0x000001F01E471390>

